From 99a43b3bea2b002b87d650aa29d383509b42ed49 Mon Sep 17 00:00:00 2001 From: "iap10@tetris.cl.cam.ac.uk" Date: Thu, 21 Apr 2005 00:05:05 +0000 Subject: [PATCH] bitkeeper revision 1.1347 (4266ee31uFDz7ZMst_Cy-vYbXJ2EZw) __vmxon() is called twice for the boot cpu, because identify_cpu() is called twice. This patch ensures that identify_cpu() and hence __vmxon() is called exactly once for the boot CPU on SMP. Signed-off-by: Anil S Keshavamurthy Signed-off-by: Arun Sharma Signed-off-by: ian@xensource.com --- xen/arch/x86/smpboot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/smpboot.c b/xen/arch/x86/smpboot.c index 8769da839f..4b71243a41 100644 --- a/xen/arch/x86/smpboot.c +++ b/xen/arch/x86/smpboot.c @@ -115,7 +115,8 @@ void __init smp_alloc_memory(void) void __init smp_store_cpu_info(int id) { cpu_data[id] = boot_cpu_data; - identify_cpu(&cpu_data[id]); + if (id != 0) + identify_cpu(&cpu_data[id]); } /* -- 2.30.2